package com.ruoyi.safety.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.PointUitDictMapper;
import com.ruoyi.safety.domain.PointUitDict;
import com.ruoyi.safety.service.IPointUitDictService;

/**
 * 测点数值单位字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class PointUitDictServiceImpl extends ServiceImpl<PointUitDictMapper, PointUitDict> implements IPointUitDictService //修改
{
    @Autowired
    private PointUitDictMapper pointUitDictMapper;

    /**
     * 查询测点数值单位字典
     * 
     * @param pointUnitId 测点数值单位字典主键
     * @return 测点数值单位字典
     */
    @Override
    public PointUitDict selectPointUitDictByPointUnitId(String pointUnitId)
    {
        return pointUitDictMapper.selectPointUitDictByPointUnitId(pointUnitId);
    }

    /**
     * 查询测点数值单位字典列表
     * 
     * @param pointUitDict 测点数值单位字典
     * @return 测点数值单位字典
     */
    @Override
    public List<PointUitDict> selectPointUitDictList(PointUitDict pointUitDict)
    {
        return pointUitDictMapper.selectPointUitDictList(pointUitDict);
    }

    /**
     * 新增测点数值单位字典
     * 
     * @param pointUitDict 测点数值单位字典
     * @return 结果
     */
    @Override
    public int insertPointUitDict(PointUitDict pointUitDict)
    {
        return pointUitDictMapper.insertPointUitDict(pointUitDict);
    }

    /**
     * 修改测点数值单位字典
     * 
     * @param pointUitDict 测点数值单位字典
     * @return 结果
     */
    @Override
    public int updatePointUitDict(PointUitDict pointUitDict)
    {
        return pointUitDictMapper.updatePointUitDict(pointUitDict);
    }

    /**
     * 批量删除测点数值单位字典
     * 
     * @param pointUnitIds 需要删除的测点数值单位字典主键
     * @return 结果
     */
    @Override
    public int deletePointUitDictByPointUnitIds(String[] pointUnitIds)
    {
        return pointUitDictMapper.deletePointUitDictByPointUnitIds(pointUnitIds);
    }

    /**
     * 删除测点数值单位字典信息
     * 
     * @param pointUnitId 测点数值单位字典主键
     * @return 结果
     */
    @Override
    public int deletePointUitDictByPointUnitId(String pointUnitId)
    {
        return pointUitDictMapper.deletePointUitDictByPointUnitId(pointUnitId);
    }

    @Override
    public PointUitDict selectPointUitDictByCode(String datum) {
        return pointUitDictMapper.selectPointUitDictByCode(datum);
    }
}
